hal_gruner_707L_latching_relay.c File Reference

Hardware Abstraction Layer (HAL) support file for Gruner 707L latching relay. More...

#include "../HAL/hal.h"
#include "hal_gruner_707L_latching_relay.h"

Functions

signed char setRelay (char channel, char action)

Detailed Description

Hardware Abstraction Layer (HAL) support file for Gruner 707L latching relay.

Note:
ACCELEROMETER_RX_BUF and ACCELEROMETER_SS_SET and ACCELEROMETER_SS_CLEAR, and spiWriteAccelerometer() must be defined
Rev
696
Author
dsmith
Date
2010-08-11 18:16:07 -0700 (Wed, 11 Aug 2010)

Function Documentation

signed char setRelay ( char  channel,
char  action 
)

Set the specified relay on or off sends a 15mSec pulse to the appropriate relay coil disables interrupts during pulse Does NOT read relay status from EEPROM, does not store the new relay status in EEPROM Precondition: pins configured as digital outputs

Returns:
-1 if invalid channel, -2 if invalid action, 0 if success
 All Files Functions Variables
Generated on Thu Aug 19 11:48:31 2010 for Hardware Abstraction Layer by  doxygen 1.6.3